<!DOCTYPE html>
<!--<html>-->
<html xmlns:th="http://www.thymeleaf.org">

<head>
    <meta charset="UTF-8">
    <title>首页</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <script type="text/javascript" src="/layui.all.js"></script>
    <script type="text/javascript" src="/js/echarts.min.js"></script>

    <link rel="stylesheet" href="/css/layui.css" />
    <link href="/css/Global.css" rel="stylesheet" type="text/css" media="all" />
</head>

<body style="">
<div class="layui-layout" style="">

    <div class="layui-side layui-bg-black" style="overflow-x: visible;">

        <div th:include="/common/common::header"></div>

        <div class="layui-side-scroll">
            <ul class="layui-nav layui-nav-tree site-demo-nav">
                <li class="layui-nav-item layui-this">
                    <a class="layui-icon layui-icon-home" href="/zhl/index" style="font-size: 14px">&nbsp;首页</a>
                </li>

                <li class="layui-nav-item">
                    <a class="layui-icon layui-icon-group" href="/zhl/user" style="font-size: 14px">&nbsp;用户管理</a>
                </li>
                <li class="layui-nav-item">
                    <a class="layui-icon layui-icon-read" href="/zhl/article" style="font-size: 14px">&nbsp;笔记管理</a>
                </li>
                <li class="layui-nav-item">
                    <a class="layui-icon layui-icon-headset" style="font-size: 14px" href="/zhl/music">&nbsp;音乐管理</a>
                </li>
                <li class="layui-nav-item" style="height: 30px; text-align: center"></li>
                <span class="layui-nav-bar" style="top: 67.5px; height: 0px; opacity: 0;"></span>
            </ul>

        </div>
    </div>

    <div class="layui-body site-demo">
        <div class="layui-layout layui-layout-admin">
            <div class="layui-header">
                <ul class="layui-nav layui-layout-left">
                    <li class="layui-nav-item">
                        <a href="hard.html"><i class="layui-icon layui-icon-chart-screen layui-ico"></i>用户硬件信息</a>
                    </li>
                    <li class="layui-nav-item">
                        <a href="user.html"><i class="layui-icon layui-icon-group layui-ico"></i>第三方登陆</a>
                    </li>
                </ul>
                <ul class="layui-nav layui-layout-right">
                    <li class="layui-nav-item">
                        <a href="javascript:;">
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                            <i class="layui-icon layui-icon-set-fill layui-ico"></i>
                        </a>
                        <dl class="layui-nav-child">
                            <dd>
                                <a href="">设置</a>
                            </dd>
                            <dd>
                                <a href="">退出</a>
                            </dd>
                        </dl>
                    </li>
                </ul>
            </div>
        </div>
        <div id="main" style="width: 100%;height:100%;"></div>
    </div>
    <div class="site-tree-mobile layui-hide">
        <i class="layui-icon">&#xe602;</i>
    </div>
    <script src="/Js/Comm.js" type="text/javascript"></script>
    <script>
        $(function() {
            $(".site-tree-mobile").click(function() {
                $("body").addClass("site-mobile");
                $(".site-mobile-shade").click(function() {
                    $("body").removeClass("site-mobile");
                });
            });
        });
    </script>
    <script>
        var myChart = echarts.init(document.getElementById('main'));
        option = {
            title: {
                text: '饼图程序调用高亮示例',
                x: 'center'
            },
            tooltip: {
                trigger: 'item',
                formatter: "{a} <br/>{b} : {c} ({d}%)"
            },
            legend: {
                orient: 'vertical',
                left: 'left',
                data: ['直接访问', '邮件营销', '联盟广告', '视频广告', '搜索引擎']
            },
            series: [{
                name: '访问来源',
                type: 'pie',
                radius: '55%',
                center: ['50%', '60%'],
                data: [{
                    value: 335,
                    name: '直接访问'
                },
                    {
                        value: 310,
                        name: '邮件营销'
                    },
                    {
                        value: 234,
                        name: '联盟广告'
                    },
                    {
                        value: 135,
                        name: '视频广告'
                    },
                    {
                        value: 1548,
                        name: '搜索引擎'
                    }
                ],
                itemStyle: {
                    emphasis: {
                        shadowBlur: 10,
                        shadowOffsetX: 0,
                        shadowColor: 'rgba(0, 0, 0, 0.5)'
                    }
                }
            }]
        };

        myChart.currentIndex = -1;

        setInterval(function() {
            var dataLen = option.series[0].data.length;
            // 取消之前高亮的图形
            myChart.dispatchAction({
                type: 'downplay',
                seriesIndex: 0,
                dataIndex: myChart.currentIndex
            });
            myChart.currentIndex = (myChart.currentIndex + 1) % dataLen;
            // 高亮当前图形
            myChart.dispatchAction({
                type: 'highlight',
                seriesIndex: 0,
                dataIndex: myChart.currentIndex
            });
            // 显示 tooltip
            myChart.dispatchAction({
                type: 'showTip',
                seriesIndex: 0,
                dataIndex: myChart.currentIndex
            });
        }, 1000);

        myChart.setOption(option)
    </script>

</body>

</html>